package com.zhsj.OkeHomeConsumption.empty;

import com.mcxtzhang.indexlib.IndexBar.bean.BaseIndexPinyinBean;

import java.io.Serializable;

public class IndexCityBean extends BaseIndexPinyinBean implements Serializable {


    /**
     * showName : 陕西省-西安市
     * cityName : 雁塔区
     * name : 陕西省-西安市-雁塔区
     * cityId : 32
     * provinceId : 30
     */
    private boolean isTop;//是否是最上面的 不需要被转化成拼音的
    private String showName;
    private String cityName;
    private String name;
    private int cityId;
    private int provinceId;

    @Override
    public boolean isNeedToPinyin() {
        return !isTop;
    }

    @Override
    public boolean isShowSuspension() {
        return !isTop;
    }

    public String getShowName() {
        return showName;
    }

    public void setShowName(String showName) {
        this.showName = showName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public int getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(int provinceId) {
        this.provinceId = provinceId;
    }

    @Override
    public String getTarget() {
        return name;
    }
}
